package com.kevin.state;

/**
 * 具体状态2类
 *
 * @author kevin
 * @date 2025/8/22
 */
public class ConcreteState2 extends State {
    @Override
    public void handle(Context context) {
        System.out.println("当前状态是 ConcreteState2");
       // 状态切换为 ConcreteState1
        context.setState(new ConcreteState1());
    }
}
